var e = require;
var t = module;
var n = e("LevelManager"),
o = e("LevelSceneManager");
cc.Class({
    extends: cc.Component,
    properties: {},
    onBeginContact: function() {
        this.node.destroy();
        LevelManager.Instance.GameCurrentOperationMode == n.GameOperationMode.Defense && LevelManager.Instance.HealthProgressBar.progress <= .55 ? LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.KingStoryLobby) : LevelManager.Instance.GameCurrentOperationMode != n.GameOperationMode.Defense || LevelManager.Instance.HealthProgressBar.node.active || LevelManager.Instance.AttackProgressBar.node.active ? LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.Lobby) : LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.KingStoryLobby)
    }
})